package com.hjm.mall.api.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
public class AddressParam {
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("手机号")
    @NotEmpty(message = "手机号不能为空")
    private String phone;
    @ApiModelProperty("地址")
    private String address;
    @ApiModelProperty("是否为默认")
    @NotEmpty(message = "默认地址不能为空")
    private Boolean def;
}
